import request from '@/utils/request'

export function getApprovers(query) {
  return request({
    url: '/approval/form/approvers',
    method: 'get',
    params: query
  })
}

export function getApprovalCategoriesByDefaultApproverId(query) {
  return request({
    url: '/approval/form/approvalCategories',
    method: 'get',
    params: query
  })
}

export function changeDefaultApprover(query) {
  return request({
    url: '/approval/form/changeDefaultApprover',
    method: 'put',
    params: query
  })
}